﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Intex.Controls.Stopwatch.Controllers
{
    public static class StopwatchControllerFactory
    {
        public static IStopwatchController CreateContoller(StopwatchType type)
        {
            IStopwatchController controller = null;
            switch (type)
            {
                case StopwatchType.None:
                    controller = new DefaultStopwatchController();
                    break;
                case StopwatchType.XM058B:
                    controller = new XM058BController();
                    break;
                default:
                    controller = new DefaultStopwatchController();
                    break;
            }

            return controller;
        }
    }
}
